﻿package com.ibm.crl.sb.mini.nioserver.event;

import com.ibm.crl.sb.mini.nioserver.Request;
import com.ibm.crl.sb.mini.nioserver.Response;
import com.ibm.crl.sb.mini.nioserver.event.ServerListener;

/**
 * <p>
 * Title: 事件适配器
 * </p>
 * 
 * @author starboy
 * @version 1.0
 */

public abstract class EventAdapter implements ServerListener {
	public EventAdapter() {
	}

	public void onError(String error) {
	}

	public void onAccept() throws Exception {
	}

	public void onAccepted(Request request) throws Exception {
	}

	public void onRead(Request request) throws Exception {
	}

	public void onWrite(Request request, Response response) throws Exception {
	}

	public void onClosed(Request request) throws Exception {
	}
}
